<?php
$tr = Zend_Registry::get('Zend_Translate');

$form_translate = array (
  Zend_Validate_Alnum::NOT_ALNUM => $tr->_("'%value%' has not only alphabetic and digit characters"),
  Zend_Validate_Alnum::STRING_EMPTY => $tr->_("'%value%' is an empty string"),
  Zend_Validate_Alpha::NOT_ALPHA => $tr->_("'%value%' has not only alphabetic characters"),
  Zend_Validate_Alpha::STRING_EMPTY => $tr->_("'%value%' is an empty string"),
  Zend_Validate_Barcode_Ean13::INVALID => $tr->_("'%value%' is an invalid EAN-13 barcode"),
  Zend_Validate_Barcode_Ean13::INVALID_LENGTH => $tr->_("'%value%' should be 13 characters"),
  Zend_Validate_Barcode_UpcA::INVALID => $tr->_("'%value%' is an invalid UPC-A barcode"),
  Zend_Validate_Barcode_UpcA::INVALID_LENGTH => $tr->_("'%value%' should be 12 characters"),
  Zend_Validate_Between::NOT_BETWEEN => $tr->_("'%value%' is not between '%min%' and '%max%', inclusively"),
  Zend_Validate_Between::NOT_BETWEEN_STRICT => $tr->_("'%value%' is not strictly between '%min%' and '%max%'"),
  Zend_Validate_Ccnum::LENGTH => $tr->_("'%value%' must contain between 13 and 19 digits"),
  Zend_Validate_Ccnum::CHECKSUM => $tr->_("Luhn algorithm (mod-10 checksum) failed on '%value%'"),
  Zend_Validate_Date::NOT_YYYY_MM_DD => $tr->_("'%value%' is not of the format YYYY-MM-DD"),
  Zend_Validate_Date::INVALID => $tr->_("'%value%' does not appear to be a valid date"),
  Zend_Validate_Date::FALSEFORMAT => $tr->_("'%value%' does not fit given date format"),
  Zend_Validate_Digits::NOT_DIGITS => $tr->_("'%value%' contains not only digit characters"),
  Zend_Validate_Digits::STRING_EMPTY => $tr->_("'%value%' is an empty string"),
  Zend_Validate_EmailAddress::INVALID => $tr->_("'%value%' is not a valid email address in the basic format local-part@hostname"),
  Zend_Validate_EmailAddress::INVALID_HOSTNAME => $tr->_("'%hostname%' is not a valid hostname for email address '%value%'"),
  Zend_Validate_EmailAddress::INVALID_MX_RECORD => $tr->_("'%hostname%' does not appear to have a valid MX record for the email address '%value%'"),
  Zend_Validate_EmailAddress::DOT_ATOM => $tr->_("'%localPart%' not matched against dot-atom format"),
  Zend_Validate_EmailAddress::QUOTED_STRING => $tr->_("'%localPart%' not matched against quoted-string format"),
  Zend_Validate_EmailAddress::INVALID_LOCAL_PART => $tr->_("'%localPart%' is not a valid local part for email address '%value%'"),
  Zend_Validate_Float::NOT_FLOAT => $tr->_("'%value%' does not appear to be a float"),
  Zend_Validate_GreaterThan::NOT_GREATER => $tr->_("'%value%' is not greater than '%min%'"),
  Zend_Validate_Hex::NOT_HEX => $tr->_("'%value%' has not only hexadecimal digit characters"),
  Zend_Validate_Hostname::IP_ADDRESS_NOT_ALLOWED => $tr->_("'%value%' appears to be an IP address, but IP addresses are not allowed"),
  Zend_Validate_Hostname::UNKNOWN_TLD => $tr->_("'%value%' appears to be a DNS hostname but cannot match TLD against known list"),
  Zend_Validate_Hostname::INVALID_DASH => $tr->_("'%value%' appears to be a DNS hostname but contains a dash (-) in an invalid position"),
  Zend_Validate_Hostname::INVALID_HOSTNAME_SCHEMA => $tr->_("'%value%' appears to be a DNS hostname but cannot match against hostname schema for TLD '%tld%'"),
  Zend_Validate_Hostname::UNDECIPHERABLE_TLD => $tr->_("'%value%' appears to be a DNS hostname but cannot extract TLD part"),
  Zend_Validate_Hostname::INVALID_HOSTNAME => $tr->_("'%value%' does not match the expected structure for a DNS hostname"),
  Zend_Validate_Hostname::INVALID_LOCAL_NAME => $tr->_("'%value%' does not appear to be a valid local network name"),
  Zend_Validate_Hostname::LOCAL_NAME_NOT_ALLOWED => $tr->_("'%value%' appears to be a local network name but local network names are not allowed"),
  Zend_Validate_Identical::NOT_SAME => $tr->_("Tokens do not match"),
  Zend_Validate_Identical::MISSING_TOKEN => $tr->_("No token was provided to match against"),
  Zend_Validate_InArray::NOT_IN_ARRAY => $tr->_("'%value%' was not found in the haystack"),
  Zend_Validate_Int::NOT_INT => $tr->_("'%value%' does not appear to be an integer"),
  Zend_Validate_Ip::NOT_IP_ADDRESS => $tr->_("'%value%' does not appear to be a valid IP address"),
  Zend_Validate_LessThan::NOT_LESS => $tr->_("'%value%' is not less than '%max%'"),
  Zend_Validate_NotEmpty::IS_EMPTY => $tr->_("Value is empty, but a non-empty value is required"),
  Zend_Validate_Regex::NOT_MATCH => $tr->_("'%value%' does not match against pattern '%pattern%'"),
  Zend_Validate_StringLength::TOO_SHORT => $tr->_("'%value%' is less than %min% characters long"),
  Zend_Validate_StringLength::TOO_LONG => $tr->_("'%value%' is greater than %max% characters long"),
  Zend_Validate_File_Count::TOO_MUCH => $tr->_("Too much files, only '%value%' are allowed"),
  Zend_Validate_File_Count::TOO_LESS => $tr->_("Too less files, minimum '%value%' must be given"),
  Zend_Validate_File_Extension::FALSE_EXTENSION => $tr->_("The file '%value%' has a false extension"),
  Zend_Validate_File_Extension::NOT_FOUND => $tr->_("The file '%value%' was not found"),
  Zend_Validate_File_FilesSize::TOO_BIG => $tr->_("The files in sum exceed the maximum allowed size"),
  Zend_Validate_File_FilesSize::TOO_SMALL => $tr->_("All files are in sum smaller than required"),
  Zend_Validate_File_FilesSize::NOT_READABLE => $tr->_("One or more files can not be read"),
  Zend_Validate_File_ImageSize::WIDTH_TOO_BIG => $tr->_("Width of the image '%value%' is bigger than allowed"),
  Zend_Validate_File_ImageSize::WIDTH_TOO_SMALL => $tr->_("Width of the image '%value%' is smaller than allowed"),
  Zend_Validate_File_ImageSize::HEIGHT_TOO_BIG => $tr->_("Height of the image '%value%' is bigger than allowed"),
  Zend_Validate_File_ImageSize::HEIGHT_TOO_SMALL => $tr->_("Height of the image '%value%' is smaller than allowed"),
  Zend_Validate_File_ImageSize::NOT_DETECTED => $tr->_("Size if the image '%value%' could not be detected"),
  Zend_Validate_File_ImageSize::NOT_READABLE => $tr->_("The image '%value%' can not be read"),
  Zend_Validate_File_Size::TOO_BIG => $tr->_("The file '%value%' is bigger than allowed"),
  Zend_Validate_File_Size::TOO_SMALL => $tr->_("The file '%value%' is smaller than allowed"),
  Zend_Validate_File_Size::NOT_FOUND => $tr->_("The file '%value%' could not be found"),
  Zend_Validate_File_Upload::INI_SIZE => $tr->_("The file '%value%' exceeds the defined ini size"),
  Zend_Validate_File_Upload::FORM_SIZE => $tr->_("The file '%value%' exceeds the defined form size"),
  Zend_Validate_File_Upload::PARTIAL => $tr->_("The file '%value%' was only partially uploaded"),
  Zend_Validate_File_Upload::NO_FILE => $tr->_("The file '%value%' was not uploaded"),
  Zend_Validate_File_Upload::NO_TMP_DIR => $tr->_("No temporary directory was found for the file '%value%'"),
  Zend_Validate_File_Upload::CANT_WRITE => $tr->_("The file '%value%' can't be written"),
  Zend_Validate_File_Upload::EXTENSION => $tr->_("The extension returned an error while uploading the file '%value%'"),
  Zend_Validate_File_Upload::ATTACK => $tr->_("The file '%value%' was illegal uploaded, possible attack"),
  Zend_Validate_File_Upload::FILE_NOT_FOUND => $tr->_("The file '%value%' was not found"),
  Zend_Validate_File_Upload::UNKNOWN => $tr->_("Unknown error while uploading the file '%value%'")
);
